//designpatterns.facade.Client.java
package org.patterns.structural.facade;

import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

public class Client {
    public static void main(String[] args) {

        String fileSrc = "src\\main\\java\\org\\patterns\\structural\\facade\\files\\src.txt";
        String fileDes = "src\\main\\java\\org\\patterns\\structural\\facade\\files\\des.txt";

        //EncryptFacade encryptFacade = new EncryptFacade();
        //encryptFacade.fileEncrypt(fileSrc, fileDes);

        AbstractEncryptFacade abFacade = (AbstractEncryptFacade) XMLUtil.getBean();
        abFacade.fileEncrypt(fileSrc, fileDes);

    }
}
